package com.mrzhou.rabbit.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author qiang.zhou
 */
@Getter
@Setter
public class EsMqMessage<T> implements Serializable {

    public final static String CREATE_OR_UPDATE = "create_or_update";

    public final static String REMOVE = "remove";

    @ApiModelProperty("数据id")
    private long id;

    @ApiModelProperty("动作")
    private String action;

    @ApiModelProperty("es数据")
    private T data;

}
